import request from '@/utils/request'
export const list = (data) =>
  request.get('/api/location/pageDetail', {
    params: {
      id: '',
      name: '',
      warehouseName: '',
      current: data.page,
      size: data.pagesize
    }
  })

export const location = (data) =>
  request.put('/api/location', {
    ...data
  })
export const warehouse = () => request.get('/api/warehouse/list?status=1')
export const Kw = () => request.get('/api/codeFactory/next/KW')
export const areaList = (data) =>
  request.get('/api/area/list', {
    params: {
      ...data
    }
  })
export const overview = (id) => request.get(`/api/area/overview/${id}`)
